package oracle;

/**
 * This represents the class that is returned by the oracle on a move request
 * It tells information about the type of move attempted, performed, if a wall was hit
 * If the move was random, and also returns a copy of the tile that the user is now at
 * @author mdailey
 *
 */
public class OracleMove {
	/** This is the original type of move attempted */
	public int moveAttempted;
	/** This is the type of move performed */
	public int movePerformed;
	/** this is the random chance move attempted */
	public int randMoveAttempted = MoveTypes.NO_MOVE;
	/** This is if the move was random */
	public boolean isRandom;
	/** This is the tile at the new position, if hit a wall, that tile is visible */
	public OracleTile newLocTile;
	/** public boolean */
	public boolean hitwall;
	
	public String toString(){
		String s = "Attempted :: " + MoveTypes.toString(moveAttempted) + " but did :: " +  MoveTypes.toString(movePerformed)
		 + " and true for random :: " + isRandom + " and hit wall :: " + hitwall;
		return s;
	}
}
